//
//  GameCollectionCell.swift
//  StudyDY
//
//  Created by yinchangming on 2018/7/6.
//  Copyright © 2018年 yinchangming. All rights reserved.
//

import UIKit

class GameCollectionCell: UICollectionViewCell {

    @IBOutlet weak var iconImageView: UIImageView!
    
    @IBOutlet weak var gameNameLabel: UILabel!
    var catgary:BaseGameBean?{
        didSet{
            if((catgary?.small_icon_url)?.contains("http"))!{
                ImageTools.showImage(image: iconImageView, url: URL(string: (catgary?.small_icon_url)!)!,defaultImageString: "Img_default")
            }else{
                iconImageView.image=UIImage(named: "home_more_btn")
            }
         
            
            gameNameLabel.text=catgary?.tag_name
        }
    }
}
